package cn.tjnext.apply.contants;

import cn.tjnext.apply.entity.ProductDetail;
import cn.tjnext.apply.entity.ProductEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by adol on 2017/9/26.
 */
public abstract class ProductConstants {
//=================================================================================
    private static String YE_SAN_PO_ID = "YE";
//    private static String YE_SAN_PO_CN = "野三坡百里峡七彩小镇孤山寨二日";
    private static String YE_SAN_PO_CN = "野三坡百里峡七彩小镇";

    private static String YE_SAN_PO_ADULT_ID = "YE_ADULT";
    private static String YE_SAN_PO_ADULT_NAME = "成人";
    private static String YE_SAN_PO_ADULT_PRICE = "338";

    private static String YE_SAN_PO_DRIFT_ID = "YE_DRIFT";
    private static String YE_SAN_PO_DRIFT_NAME = "成人含漂流";
    private static String YE_SAN_PO_DRIFT_PRICE = "368";

    private static String YE_SAN_PO_CHILD_ID = "YE_CHILD";
    private static String YE_SAN_PO_CHILD_NAME = "儿童";
    private static String YE_SAN_PO_CHILD_PRICE = "150";
    //================================================================================
    private static String TAI_HANG_SHUI_ID = "TAI";
//    private static String TAI_HANG_SHUI_CN = "太行水镇白石山全景外观易水湖品质二日";
    private static String TAI_HANG_SHUI_CN = "太行水镇白石山全景";

    private static String TAI_HANG_SHUI_ADULT_ID = "TAI_ADULT";
    private static String TAI_HANG_SHUI_ADULT_NAME = "成人";
    private static String TAI_HANG_SHUI_ADULT_PRICE = "418";

    private static String TAI_HANG_SHUI_CHILD_ID = "TAI_CHILD";
    private static String TAI_HANG_SHUI_CHILD_NAME = "儿童";
    private static String TAI_HANG_SHUI_CHILD_PRICE = "198";
    //================================================================================
    private static String QIU_JING_ZHANG_ID = "QIU";
//    private static String QIU_JING_ZHANG_CN = "秋景张北天路—张北天鹿大本营夜宿雪乡民宿品质二人";
    private static String QIU_JING_ZHANG_CN = "秋景张北天路夜宿雪乡";

    private static String QIU_JING_ZHANG_ADULT_ID = "QIU_ADULT";
    private static String QIU_JING_ZHANG_ADULT_NAME = "成人";
    private static String QIU_JING_ZHANG_ADULT_PRICE = "378";

    private static String QIU_JING_ZHANG_CHILD_ID = "QIU_CHILD";
    private static String QIU_JING_ZHANG_CHILD_NAME = "儿童";
    private static String QIU_JING_ZHANG_CHILD_PRICE = "220";
    //================================================================================
    private static String JIN_QIU_CAO_ID = "JIN";
//    private static String JIN_QIU_CAO_CN = "金秋草原丰宁坝上草原嘉年华干年冰臼佛珠洞休闲二日/三日";
    private static String JIN_QIU_CAO_CN = "金秋草原丰宁坝上草原";

    private static String JIN_QIU_CAO_ADULT_TWO_ID = "JIN_ADULT_TWO";
    private static String JIN_QIU_CAO_ADULT_TWO_NAME = "成人两日";
    private static String JIN_QIU_CAO_ADULT_TWO_PRICE = "398";

    private static String JIN_QIU_CAO_ADULT_THREE_ID = "JIN_ADULT_THREE";
    private static String JIN_QIU_CAO_ADULT_THREE_NAME = "成人三日";
    private static String JIN_QIU_CAO_ADULT_THREE_PRICE = "518";

    private static String JIN_QIU_CAO_CHILD_TWO_ID = "JIN_CHILD_TWO";
    private static String JIN_QIU_CAO_CHILD_TWO_NAME = "儿童两日";
    private static String JIN_QIU_CAO_CHILD_TWO_PRICE = "220";


    private static String JIN_QIU_CAO_CHILD_THREE_ID = "JIN_CHILD_THREE";
    private static String JIN_QIU_CAO_CHILD_THREE_NAME = "儿童三日";
    private static String JIN_QIU_CAO_CHILD_THREE_PRICE = "280";
    //================================================================================
    private static String SHANG_ZI_RAN_ID = "SHANG";
//    private static String SHANG_ZI_RAN_CN = "赏自然风光山叶口 游滦州古城 品尝特色农家餐绿色休闲二日";
    private static String SHANG_ZI_RAN_CN = "赏自然风光游滦州古城";

    private static String SHANG_ZI_RAN_ADULT_ID = "SHANG_ADULT";
    private static String SHANG_ZI_RAN_ADULT_NAME = "成人";
    private static String SHANG_ZI_RAN_ADULT_PRICE = "308";

    private static String SHANG_ZI_RAN_CHILD_ID = "SHANG_CHILD";
    private static String SHANG_ZI_RAN_CHILD_NAME = "儿童";
    private static String SHANG_ZI_RAN_CHILD_PRICE = "140";
    //================================================================================
    private static String SHAN_HAI_GUAN_ID = "SHAN";
//    private static String SHAN_HAI_GUAN_CN = "山海关古城 东戴河海鲜大餐休闲二日";
    private static String SHAN_HAI_GUAN_CN = "山海关古城东戴河海鲜";

    private static String SHAN_HAI_GUAN_ADULT_ID = "SHAN_ADULT";
    private static String SHAN_HAI_GUAN_ADULT_NAME = "成人";
    private static String SHAN_HAI_GUAN_ADULT_PRICE = "358";

    private static String SHAN_HAI_GUAN_CHILD_ID = "SHAN_CHILD";
    private static String SHAN_HAI_GUAN_CHILD_NAME = "儿童";
    private static String SHAN_HAI_GUAN_CHILD_PRICE = "140";
    //================================================================================
    private static String CHANG_YOU_GU_ID = "CHANG";
//    private static String CHANG_YOU_GU_CN = "畅游古北 登司马台长城 观水镇夜景 挑战石林峡 UFO观景台休闲二日";
    private static String CHANG_YOU_GU_CN = "畅游古北登司马台长城";

    private static String CHANG_YOU_GU_ADULT_ID = "CHANG_ADULT";
    private static String CHANG_YOU_GU_ADULT_NAME = "成人";
    private static String CHANG_YOU_GU_ADULT_PRICE = "458";

    private static String CHANG_YOU_GU_CHILD_ID = "CHANG_CHILD";
    private static String CHANG_YOU_GU_CHILD_NAME = "儿童";
    private static String CHANG_YOU_GU_CHILD_PRICE = "198";
    //=================================================================================
    //=================================== 测试数据 start =========================================
    private static String TEST_ID = "TEST";
    private static String TEST_CN = "测试路线";

    private static String TEST_ADULT_ID = "TEST_ADULT";
    private static String TEST_ADULT_NAME = "成人";
    private static String TEST_ADULT_PRICE = "0.01";

    private static String TEST_DRIFT_ID = "TEST_DRIFT";
    private static String TEST_DRIFT_NAME = "成人含漂流";
    private static String TEST_DRIFT_PRICE = "0.01";

    private static String TEST_CHILD_ID = "TEST_CHILD";
    private static String TEST_CHILD_NAME = "儿童";
    private static String TEST_CHILD_PRICE = "0.01";
    //=================================== 测试数据 end =========================================


    //旅游路线与价格map
    public static final Map<String, ProductEntity> productMap = new HashMap<String, ProductEntity>(){
        {
            put(YE_SAN_PO_ID, new ProductEntity(YE_SAN_PO_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(YE_SAN_PO_ADULT_ID,YE_SAN_PO_ADULT_NAME,YE_SAN_PO_ADULT_PRICE));
                    add(new ProductDetail(YE_SAN_PO_DRIFT_ID,YE_SAN_PO_DRIFT_NAME,YE_SAN_PO_DRIFT_PRICE));
                    add(new ProductDetail(YE_SAN_PO_CHILD_ID,YE_SAN_PO_CHILD_NAME,YE_SAN_PO_CHILD_PRICE));
                }
            }));
            put(TAI_HANG_SHUI_ID, new ProductEntity(TAI_HANG_SHUI_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(TAI_HANG_SHUI_ADULT_ID,TAI_HANG_SHUI_ADULT_NAME,TAI_HANG_SHUI_ADULT_PRICE));
                    add(new ProductDetail(TAI_HANG_SHUI_CHILD_ID,TAI_HANG_SHUI_CHILD_NAME,TAI_HANG_SHUI_CHILD_PRICE));
                }
            }));
            put(QIU_JING_ZHANG_ID, new ProductEntity(QIU_JING_ZHANG_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(QIU_JING_ZHANG_ADULT_ID,QIU_JING_ZHANG_ADULT_NAME,QIU_JING_ZHANG_ADULT_PRICE));
                    add(new ProductDetail(QIU_JING_ZHANG_CHILD_ID,QIU_JING_ZHANG_CHILD_NAME,QIU_JING_ZHANG_CHILD_PRICE));
                }
            }));
            put(JIN_QIU_CAO_ID, new ProductEntity(JIN_QIU_CAO_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(JIN_QIU_CAO_ADULT_TWO_ID,JIN_QIU_CAO_ADULT_TWO_NAME,JIN_QIU_CAO_ADULT_TWO_PRICE));
                    add(new ProductDetail(JIN_QIU_CAO_ADULT_THREE_ID,JIN_QIU_CAO_ADULT_THREE_NAME,JIN_QIU_CAO_ADULT_THREE_PRICE));
                    add(new ProductDetail(JIN_QIU_CAO_CHILD_TWO_ID,JIN_QIU_CAO_CHILD_TWO_NAME,JIN_QIU_CAO_CHILD_TWO_PRICE));
                    add(new ProductDetail(JIN_QIU_CAO_CHILD_THREE_ID,JIN_QIU_CAO_CHILD_THREE_NAME,JIN_QIU_CAO_CHILD_THREE_PRICE));
                }
            }));
            put(SHANG_ZI_RAN_ID, new ProductEntity(SHANG_ZI_RAN_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(SHANG_ZI_RAN_ADULT_ID,SHANG_ZI_RAN_ADULT_NAME,SHANG_ZI_RAN_ADULT_PRICE));
                    add(new ProductDetail(SHANG_ZI_RAN_CHILD_ID,SHANG_ZI_RAN_CHILD_NAME,SHANG_ZI_RAN_CHILD_PRICE));
                }
            }));
            put(SHAN_HAI_GUAN_ID, new ProductEntity(SHAN_HAI_GUAN_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(SHAN_HAI_GUAN_ADULT_ID,SHAN_HAI_GUAN_ADULT_NAME,SHAN_HAI_GUAN_ADULT_PRICE));
                    add(new ProductDetail(SHAN_HAI_GUAN_CHILD_ID,SHAN_HAI_GUAN_CHILD_NAME,SHAN_HAI_GUAN_CHILD_PRICE));
                }
            }));
            put(CHANG_YOU_GU_ID, new ProductEntity(CHANG_YOU_GU_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(CHANG_YOU_GU_ADULT_ID,CHANG_YOU_GU_ADULT_NAME,CHANG_YOU_GU_ADULT_PRICE));
                    add(new ProductDetail(CHANG_YOU_GU_CHILD_ID,CHANG_YOU_GU_CHILD_NAME,CHANG_YOU_GU_CHILD_PRICE));
                }
            }));
            // ---------------------- 测试数据 start ------------------------
            put(TEST_ID, new ProductEntity(TEST_ID, new ArrayList<ProductDetail>(){
                {
                    add(new ProductDetail(TEST_ADULT_ID,TEST_ADULT_NAME,TEST_ADULT_PRICE));
                    add(new ProductDetail(TEST_DRIFT_ID,TEST_DRIFT_NAME,TEST_DRIFT_PRICE));
                    add(new ProductDetail(TEST_CHILD_ID,TEST_CHILD_NAME,TEST_CHILD_PRICE));
                }
            }));
            // ---------------------- 测试数据 end ------------------------
        }
    };

    //旅游路线list
    public static final List<ProductEntity> getProductList = new ArrayList<ProductEntity>(){
        {
            add(new ProductEntity(YE_SAN_PO_ID, YE_SAN_PO_CN));
            add(new ProductEntity(TAI_HANG_SHUI_ID, TAI_HANG_SHUI_CN));
            add(new ProductEntity(QIU_JING_ZHANG_ID, QIU_JING_ZHANG_CN));
            add(new ProductEntity(JIN_QIU_CAO_ID, JIN_QIU_CAO_CN));
            add(new ProductEntity(SHANG_ZI_RAN_ID, SHANG_ZI_RAN_CN));
            add(new ProductEntity(SHAN_HAI_GUAN_ID, SHAN_HAI_GUAN_CN));
            add(new ProductEntity(CHANG_YOU_GU_ID, CHANG_YOU_GU_CN));
            // ---------------------- 测试数据 start ------------------------
            add(new ProductEntity(TEST_ID, TEST_CN));
            // ---------------------- 测试数据 end ------------------------
        }
    };
}
